package com.ctg.itrdc.sysmgr.permission.core;

import org.apache.shiro.authc.UsernamePasswordToken;

public class CtgToken extends UsernamePasswordToken {

	private static final long serialVersionUID = 1L;
	
	private Long sysPostId;
	
	public CtgToken() {
		super();
	}

	public CtgToken(String username, String password) {
		this.setPassword((password != null) ? password.toCharArray() : null);
		this.setUsername(username);
	}

	public CtgToken(String username, String password, Long sysPostId) {
		this(username, password);
		this.sysPostId = sysPostId;
	}

	public Long getSysPostId() {
		return sysPostId;
	}

	public void setSysPostId(Long sysPostId) {
		this.sysPostId = sysPostId;
	}
}
